import mockjs from 'mockjs'
let files = require.context('./modules',false,/\.js/)
files.keys().forEach(filename => {
    files(filename).default.forEach(obj => {
        // console.log(obj);
        mockjs.mock(obj.url, obj.type, obj.response)
    })
});